<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<body>

<form action="execute.php" method="post" enctype="multipart/form-data" name="form1"  id="form1" >
<DIV id="message"> 122</DIV>
<input name="submit" type="submit" value="确定" />
<input name="reset" type="button" value="取消" onclick="document.location.href='content.php'"/>
<input type="text" value="123" name="fn"/>
<input type="text" value="123" name="id"/>
<input type="hidden" value='delete' name="action"/>
</form>

<script type="text/javascript" >
var html= "将要删除文件：";
var url=location.href;
/*
var pos = url.search('#')+1;
var ss = url.substr(pos); 
document.getElementById('form1').fn.value = ss;
*/
var pos = url.indexOf('#')+1;
var pos2 = url.indexOf('#',pos)+1;
var diff = pos2 -pos - 1 ;
var ss = url.substr(pos,diff); 
var id = url.substr(pos2);
document.getElementById('form1').fn.value = ss;
document.getElementById('form1').id.value = id;

html+=ss;
//alert(html);
//alert(document.getElementById('form1').file.value);
document.getElementById("message").innerHTML=html;

</script>
</body>
</html>
